#ifndef SMARTHOME_H
#define SMARTHOME_H

#include <QWidget>
#include <QSerialPort>
#include <QDebug>
#include <QPoint>

namespace Ui {
class smartHome;
}

class smartHome : public QWidget
{
    Q_OBJECT

public:
    explicit smartHome(QWidget *parent = nullptr);
    ~smartHome();
    void sendData(QString data1, QString data2);
    void mouseMoveEvent(QMouseEvent *e);//鼠标移动
    void mousePressEvent(QMouseEvent *e);//鼠标按下移动
private slots:
    void on_pushButton_5_clicked();

    void on_pushButton_6_clicked();

    void on_pushButton_7_clicked();

    void on_pushButton_8_clicked();

    void on_pushButton_9_clicked();

    void on_pushButton_10_clicked();

    void on_pushButton_11_clicked();

    void on_pushButton_12_clicked();

    void on_pushButton_13_clicked();

    void on_pushButton_14_clicked();

    void on_pushButton_15_clicked();

    void on_toolButton_clicked();


    void on_toolButton_2_clicked();

    void on_toolButton_3_clicked();

private:
    Ui::smartHome *ui;
    QSerialPort  * serialPort;
    QPoint p;
};

#endif // SMARTHOME_H
